@extends('default.mobile.layouts.companyPublic')
@section('title','谁浏览我的职位-'.Site::get('webname'))
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/company/common.css')}}">
@endsection
{{--头部标签--}}
@section('tag','谁浏览过我')

{{--主体内容--}}
@section('content')
    <!-- B 浏览职位-->
    <div class="list_box">
        @if(count($relist) > 0)
            @foreach($relist as $v)
                <div class="list_info">
                    <a href="{{url('mobile/resume_'.idEncryption($v->resume_id).'.html')}}">
                        <dl>
                            <dt><span class="title">{{$v->name}}</span><time>{{timeTranx($v->updated_at)}}</time></dt>
                            <dd>
                                @if($v->cnsex)
                                    <span class="default">{{$v->cnsex}}</span>
                                @endif
                                @if($v->birthday)
                                    <b>|</b><span class="default">{{$v->birthday}}岁</span>
                                @endif
                                @if($v->education)
                                    <b>|</b><span class="default">{{$v->education}}</span>
                                @endif

                                @if($v->homeaddress)
                                    <b>|</b><span class="default">{{$v->homeaddress}}</span>
                                @endif
                            </dd>
                            <dd class="line">
                                <span class="default">意向岗位：{{str_limit($v->intentionjobs,20)}}</span>
                            </dd>
                            <dd class="line">
                                <span class="default">意向工作地：{{str_limit($v->jobarea,30)}}</span>
                            </dd>
                        </dl>
                    </a>
                </div>
            @endforeach
        @else
            <div class="list_empty">
                <span class="norecord"></span>
                <span class="sorry">抱歉，没有找到符合您条件记录！</span>
            </div>
        @endif
    </div>

    <!-- B分页 -->
    <div class="page">
        @if($relist->currentPage() <= 1)
            <a class="btn_gary previous ">上一页</a>
        @else
            <a href="{{$relist->previousPageUrl()}}" class="previous">上一页</a>
        @endif
        <span><em>{{$relist->currentPage()}}</em>/{{$relist->lastPage()}}</span>
        @if($relist->currentPage()  ==  $relist->lastPage())
            <a class="next btn_gary">下一页</a>
        @else
            <a href="{{$relist->nextPageUrl()}}" class="next">下一页</a>
        @endif
    </div>
    <!-- E分页 -->
@endsection

@section('footerjs')
    @parent
@endsection